import os;
import platform;
rootPath = os.getenv('QUICK_V3_ROOT');
sysstrt = platform.system();
homedir = os.getcwd()
if __name__ == '__main__':
	print("dump all file crcList");
	cmd = "%s\\php\\crc.php" % (homedir);
	if sysstrt == "Windows" :
		os.system("%s\\quick\\bin\\win32\\php.exe %s -workdir \"src|res\" -out cdn\crcList.lua" % (rootPath,cmd))
	else:
		os.system("php %s -workdir src|res -out cdn\crcList.lua" % (cmd))